#!/user/bin/python
# -*- coding: utf-8 -*-

import json

class student(object):
    def __init__(self, name, age, score):
        self.name = name
        self.age = age
        self.score = score
 
def studentdict(stu):
    return {
        'name':stu.name,
        'age':stu.age,
        'score':stu.score
    }   
        
s = student('wzf', 22, 99)
print(json.dumps(dict(s)))
        
